package com.xiaomi.dao;

import com.xiaomi.pojo.Address;

import java.util.List;

/**
 * @ClassName AddressDao
 * @Author xiao宋
 * @Date 20:40  2022/9/15
 * @Version 1.0
 * @Description TODO
 */
public interface AddressDao {
    List<Address> getAddList(int uid);

    void addAddress(Address address);

    void updateAddress(Address address);

    /**
     * 把地址设置成默认的
     * @param aId
     */
    void setDefaultAddress( String aId);

    void deleteAddress(int id);

    /**
     * 设置成普通的
     * @param uid
     */
    void set2normal(int uid);

    Address findAddressByAid(int aid);
}
